<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf8">
		<link rel="stylesheet" type="text/css" href="misc/css/main.css" >
		<script type="text/javascript" src="misc/js/jquery-1.2.6.js"></script>
        <script type="text/javascript" src="misc/js/jquery.tablesorter.js"></script>
		<script type="text/javascript" src="misc/js/base.js"></script>
		<script type="text/javascript" src="misc/js/searchleks.js"></script>
		<title>
			<?php echo (!empty($pageTitle))? $pageTitle : 'Untitled page' ; ?>
		</title>
  	</head>
  	<body>
  	<div id="main">
		<div id="logo">
			<h1 onclick="javascript:window.location='index.php'">N. E. L. S.</h1>
            <p style="color: #ddd; margin:0px;">The <b>NE</b> Group: translation system</p>
		
			<div class="stripe" style="color: #fff; padding: 5px 10px 7px 0px; position: absolute; right: 435; top: 45px; width: 600px;">
				<div id="main-menu">
					<?php if ($isLogged): ?>
						<?php if ($currentUser->isRoot()): ?>
							<ul >
								<!--<li><a href="index.php">Home</a></li>-->
								<li><a href="index.php?cont=adminusr">Manage users</a></li>
								<li><a href="index.php?cont=admindicts">Manage dictionaries</a></li>
								<li><a href="index.php?cont=admindict">Manage modules</a></li>
								<li><a href="index.php?cont=profile">Profile [<?php echo $currentUser->login; ?>]</a></li>
								<!--<li><a href="index.php?cont=index&amp;act=about">About</a></li>-->
								<li><a href="index.php?cont=login&amp;act=logout">Logout</a></li>
							</ul>
						<?php else: ?>
							<ul >
								<!--<li><a href="index.php"><?php echo $translator['mmhome']; ?></a></li>-->
								<li><a href="index.php?cont=leks"><?php echo $translator['mmlekslist']; ?></a></li>
								<li><a href="index.php?cont=website"><?php echo $translator['mmsites']; ?></a></li>
								<li><a href="index.php?cont=profile"><!--<img src="<?php echo Config::$imgDir . '/icouserclient.gif'; ?>" border="0" alt="profile" />&nbsp; --><?php echo $translator['mmprofile']; ?> [<?php echo $currentUser->login; ?>]</a></li>
								<!--<li><a href="index.php?cont=index&amp;act=about"><?php echo $translator['mmabout']; ?></a></li>-->
								<li><a href="index.php?cont=login&amp;act=logout"><?php echo $translator['mmexit']; ?></a></li>
							</ul>
						<?php endif; ?>
					<?php else: ?>
						<ul>
							<!--<li><a href="index.php"><?php echo $translator['mmhome']; ?></a></li>-->
							<!--<li><a href="index.php?cont=login"><?php echo $translator['mmlogin']; ?></a></li>-->
							<!--<li><a href="index.php?cont=index&amp;act=about"><?php echo $translator['mmabout']; ?></a></li>-->
						</ul>
					<?php endif; ?>
				</div>
				<div id="wsname" style="float: right; margin-top: -17px; color: #aaaaaa; font-size: 18px; text-decoration: underline;"><?php echo (isset($websiteName) ? $translator['toppancurrsite'] .': ' . $websiteName : ''); ?></div>
			</div>
		</div>
		<?php if(isset($panel) && $panel) : ?>
			<div id="helpbox">
				<div class="center" style="color: #fff; padding: 2px; background: #333;">
					<img src="<?php echo Config::$imgDir . '/icohome.gif'; ?>" border="0" alt="helper"/>&nbsp;Control Panel
				</div>
				<?php if ($pageId == 'lekslist'): ?>
					<ul >
						<!--<li><a href="index.php?cont=leks&amp;act=addleks">Add new leks</a></li>-->
						<li><img src="<?php echo Config::$imgDir . '/icoplus.gif' ?>" alt="add user" title="add new user" border="0" />&nbsp;<a style="cursor: pointer;" onclick="javascript:window.open('index.php?cont=leks&amp;act=addleks','','width=1000,height=700,resizable=1,scrollbars=1','');">Add new leksem</a></li>
						<li><img src="<?php echo Config::$imgDir . '/arrowdown.gif'; ?>" border="0" alt="preview and export"/> &nbsp;<a href="index.php?cont=export">Export your work</a></li>
					</ul>
				<?php elseif ($pageId == 'website'): ?>
					<ul >
						<li><a href="index.php?cont=website&amp;act=list">View all your websites</a></li>
					</ul>
				<?php else: ?>
					This will be help box for each page
					This will be help box for each page
					This will be help box for each page
					This will be help box for each page
					This will be help box for each page
					This will be help box for each page
					This will be help box for each page
				<?php endif; ?>
			</div>
		<?php endif; ?>
		<div id="content" <?php echo (!$panel) ? 'style="width: 100%"' : ''; ?>>
 
 
